#pragma once

#include <GAF\GAF.h>
#include "T_Define.h"
#include "T_MainScn.h"

#ifdef TEST_SceneShowCall
#include "T_SecondScn.h"
#include "T_SubScn.h"
#endif

#define GAF_pTHEMYAPP		((T_App*)GAF_pTHEAPP)

class T_App : public GAF_CApplication
{
public:
	T_App(void);
	~T_App(void);

protected:
	GAF_CPlatform*		GetUsePlatform();
	GAF_CScene*		OnCreateApp(_OUT GAF_SCreateWindow& cw);
	bool			OnInitApp();
	void			OnDestroyApp();

private:
	T_MainScn		m_scnMain;

#ifdef TEST_SceneShowCall
public:
	GAF_CScene*		GetMainScene()
				{return &m_scnMain;}
	GAF_CScene*		GetSecondScene()
				{return &m_scnSecond;}
	GAF_CScene*		GetSubScene()
				{return &m_scnSub;}
private:
	T_SecondScn		m_scnSecond;
	T_SubScn		m_scnSub;
#endif
};
